﻿@{
    Layout = null;
}
@model Ec_System.Models.Web.CustomerComplaintData

<script type="text/javascript">
    $(document).ready(function () {
        $("#continueComplaint").validate({
            rules: {
                txt_Content: { required: true }
            },

            messages: {
                txt_Content: { required: "请输入投诉内容" }
            }
        });
    });
</script>


<div class="AreaR2">
    <div class="box">
        <div class="box_1">
            <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
                <div class="blank"></div>
                <div>订单编号: @Model.OrderId  &nbsp; &nbsp; &nbsp;&nbsp;类型: @Model.ShowComplaintType   </div>
                <div class="blank"></div>
                <div>标题: @Model.Title </div>
                <div class="blank"></div>
                <table width="100%" cellpadding="5" cellspacing="1" style="border-style: solid; border-width: 1px; border-color: #f6f5f6;">
                    @foreach (var item in Model.DetailList)
                    {
                        <tr style="border-color: #f6f5f6; background-color: #f6f5f5;height:32px ">
                            <td align="left">投诉内容</td>
                            <td align="left" width="200">提交日期:@item.InDate</td>
                        </tr>
                        <tr style="height:30px">
                            <td colspan="2" align="left">@item.Contents</td>
                        </tr>
                        if (!string.IsNullOrWhiteSpace(@item.ReplayContent))
                        {
                            <tr style="border-color: #f6f5f6; background-color: #f6f5f5;height:32px ">
                                <td align="left">回复内容</td>
                                <td align="left" width="200">回复日期:@item.ReplayTime</td>
                            </tr>
                            <tr style="height:30px">
                                <td align="left">@item.ReplayContent</td>
                            </tr>
                        }
                    }
                </table>
                <div class="blank"></div>
                @if (Model.Status == 2)
                {
                    using (Html.BeginForm("ContinueComplaint", "UserCenter", FormMethod.Post, new { name = "continueComplaint", id = "continueComplaint" }))
                    {
                        @Html.AntiForgeryToken()
                        <table>
                            <tr>
                                <td align="left" bgcolor="#FFFFFF">投诉内容：</td>
                                <td align="left" bgcolor="#FFFFFF">
                                    <textarea name="txt_Content" class="required" cols="80" rows="6"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td align="left" bgcolor="#FFFFFF">
                                    <input type="hidden" name="hid_ID" value="@Model.ID" />
                                    <input name="submit" type="submit" value="继续投诉" class="bnt_blue_1" style="border:none;" />
                                </td>
                            </tr>
                        </table>
                    }
                }
                <div class="f_l">
                </div>
            </div>
        </div>
    </div>
</div>
<div class="blank"></div>
